<include file="Public/head" />
<link rel="stylesheet" href="__PUBLIC__/admin/css/colorbox.css" />

<body class="no-skin">
    <include file="Public/header" />
    <div class="main-container" id="main-container">
        <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {}
        </script>
        <include file="Public/sidebar" />
        <div class="main-content">
            <div class="main-content-inner">
                <!-- #section:basics/content.breadcrumbs -->
                <include file="Public/breadcrumbs" />
                <!-- /section:basics/content.breadcrumbs -->
                <div class="page-content">
                    <include file="Public/set" />
                    <!-- /section:settings.box -->
                    <div class="row">
                        <div class="col-xs-12">
                            <!-- PAGE CONTENT BEGINS -->
                            <div class="row">
                                <form class="form-inline" action="{:U('setting')}" method="get">
                                    <label class="inline">卡券名称</label>
                                    <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
                                    <select name="cardtype" class="form-control">
                                        <option value="0">请选择卡券类型</option>
                                        {$typeList}
                                    </select>
                                    <button type="submit" class="btn btn-purple btn-sm">
                                        <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 搜索
                                    </button>
                                    <a class="btn btn-success btn-sm" href="{:U('add')}" value="">
                                        <span class="ace-icon fa fa-bolt icon-on-right bigger-110"></span>
                                    新增
                                </a>
                                </form>
                            </div>
                            <div class="space-4"></div>
                            <div class="row">
                                <form id="del-form" method="post" action="{:U('del')}">
                                    <table class="table table-striped table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th width="3%">ID</th>
                                                <th width="10%">卡券名称</th>
                                                <th width="10%">类型</th>
                                                <th width="10%">图片</th>
                                                <th width="5%">面额</th>
                                                <th width="5%">兑换积分</th>
                                                <th width="10%">使用规则</th>
                                                <th width="15%">有效期</th>
                                                <th width="10%">创建时间</th>
                                                <!-- <th width="5%">状态</th> -->
                                                <th width="">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <empty name="list">
                                                <tr>
                                                    <td colspan="13" class="center">暂时没有记录</td>
                                                </tr>
                                                <else/>
                                                <volist name="list" id="vo">
                                                    <tr>
                                                        <td class="center">{$vo.card_id}</td>
                                                        <td class="center" id="type{$vo.card_id}"> {$vo.card_name} </td>
                                                        <td class="center">{$vo.typename}</td>
                                                        <td class="center">
                                                            <a href="{$vo.card_img}" title="{$vo.card_name}" data-rel="colorbox">
                                                                <img width="100" src="{$vo.card_img}"/>
                                                            </a>
                                                        </td>
                                                        <td class="center">{$vo.card_money}</td>
                                                        <td class="center">{$vo.card_integral}</td>
                                                        <td class="center"> 满{$vo.use_money}元使用 </td>
                                                        <td class="center"> {$vo.start_time} 至 {$vo.end_time} </td>
                                                        <td class=" ">{$vo.create_time}</td>
                                                        <td class="center">
                                                            <a class="green" href="{:U('edit',array('id'=>$vo['card_id']))}" title="修改"> <i class="ace-icon fa fa-pencil bigger-130"></i> 修改 </a>
                                                            <a class="red del" href="{:U('delVipCard',array('id'=>$vo['card_id']))}" title="删除"> <i class="ace-icon fa fa-trash-o bigger-130"></i> 删除 </a>
                                                        </td>
                                                    </tr>
                                                </volist>
                                            </empty>
                                        </tbody>
                                    </table>
                                </form>
                                {$page}
                            </div>
                            <!-- PAGE CONTENT ENDS -->
                        </div>
                        <!-- /.col -->
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.page-content -->
            </div>
        </div>
        <!-- /.main-content -->
        <include file="Public/footer" />
    </div>
    <!-- /.main-container -->
    <include file="Public/footerjs" />
    <script src="__PUBLIC__/admin/js/jquery.colorbox.js"></script>
    <script src="__PUBLIC__/admin/js/amall/vipcard/setting.js"></script>
    <!-- inline scripts related to this page -->
</body>

</html>